/*
 * node.h
 *
 *  Created on: Mar 17, 2024
 *      Author: 25119
 */

#ifndef NODE_NODE_H_
#define NODE_NODE_H_

#include "A72_cmd.h"

#define NODE_UART_HANDLE huart2  //网关使用的串口句柄

typedef struct Node_info Node_info;
struct Node_info
{
  uint8_t mac[6];
  uint8_t addr[2];
};

extern int A72N_reboot(void);
extern int A72N_restore(void);
int A72N_get_mac_addr(Node_info *node);
int A72N_rx_uart_it_cb(UART_HandleTypeDef *huart, bool reset);

#endif /* NODE_NODE_H_ */
